package org.example.group.service;



import org.example.group.entity.Group;
import org.example.group.entity.GroupUser;
import org.example.message.entity.Message;

import java.util.List;

public interface GroupService {
    List<Group> getgrouplist(String UserEmail);
    List<Message> messagelist();
    void addGroupMessage(Message message);

    int addGroup(String groupName, String groupBullder, String groupPicture);

    int joinGroup(Integer groupId, String userEmail);

    Group selectGroup(String groupId);

    int outGroup(Integer groupId, String userEmail);

    List<GroupUser> getUserByGroup(String groupId);
}
